﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface IBookshelfApplication
    {
        /// <summary>
        /// 获取用户书架
        /// </summary>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task<List<UserBookshelfDto>> GetUserBookshelfAsync(CancellationToken cancellationToken);

        /// <summary>
        /// 更新最后一次阅读章节
        /// </summary>
        /// <param name="dto">修改模型</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task<bool> ModifyLastReadingChapterAsync(ModifyBookshelfLastReadingChapterDto dto, CancellationToken cancellationToken);
    }
}
